home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / internet-tools / connect-line / cl / devkit / c / include / port.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  1.1 KB  |  80 lines

  1. /*
  2.  * ConnectLine: Port-Daten
  3.  *
  4.  * Verwalter: Michael Balzer
  5.  * 
  6.  * $RCSfile$
  7.  * $Revision$
  8.  * $Date$
  9.  *
  10.  * $Author$
  11.  * $Locker$
  12.  * $State$
  13.  *
  14.  * $Log$
  15.  */
  16.  
  17. #ifndef _CL_Port_H
  18. #define _CL_Port_H
  19.  
  20. #include <cl/types.h>
  21. #include <cl/clutil.h>
  22. #include <cl/cl_prefs.h>
  23.  
  24.  
  25. //
  26. // Port-Daten
  27. //
  28.  
  29.  
  30. typedef struct CLPort CLPort;
  31.  
  32. struct CLPort
  33. {
  34.     // name: NOL-Key
  35.     char        type[32];            // Name des Getties ("Serial", "IP", ...)
  36.     bool        enabled;            // für zeitl. begr. Ausschalten
  37.     ulong        attributes[8];        // Flags (V42, ISDN, ...)
  38. };
  39.  
  40.  
  41. //
  42. // Flag-Verwaltung
  43. //
  44.  
  45. typedef struct CLPortFlags CLPortFlags;
  46.  
  47. struct CLPortFlags
  48. {
  49.     short        flagmax;
  50.     char        flagname[256][16];
  51. };
  52.  
  53.  
  54. //
  55. // PrefsData-Struktur
  56. //
  57.  
  58.  
  59. typedef struct PDPorts PDPorts;
  60.  
  61. struct PDPorts
  62. {
  63.     CLPortFlags    da_portflags, st_portflags;
  64.     NOL            da_portlist, st_portlist;
  65. };
  66.  
  67.  
  68. #define PREFSID_PORTS MAKE_ID('M','P','P','L')
  69.  
  70. #define PTPRT_PORTFLAGS        (0 + TAGT_STANDARD)
  71. #define PTPRT_PORTLIST        (1 + TAGT_NOL)
  72.  
  73.  
  74. bool CLP_ReadPortPrefs( PDPorts *prefs );
  75. bool CLP_WritePortPrefs( PDPorts *prefs );
  76. bool CLP_MergePortPrefs( PDPorts *prefs, ULONG which );
  77.  
  78.  
  79. #endif
  80.